package com.definity.toolkit.ui.layer;

import java.awt.Component;

import javax.swing.JLayeredPane;

public class Layer extends JLayeredPane {

	private static final long serialVersionUID = -6480897326005958621L;

	public Layer() {

	}

	@Override
	public Layer add(Component comp) {
		super.add(comp, LayerType.DEFAULT);
		return this;
	}
	
	public Layer add(Component comp, LayerType layerType) {
		super.add(comp, layerType.getOrder());
		return this;
	}

}
